/**
 * Created with IntelliJ IDEA
 * Description
 * User:华为
 * Date:2024/11/11
 * Time:16:28
 */
import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     *
     *
     * @param str string字符串
     * @return string字符串
     */
    public String func(String str){
        int[] arr = new int[200];
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char a = str.charAt(i);
            if(arr[a] == 0){
                stringBuilder.append(a);
                arr[a] = 1;
            }
        }
        return stringBuilder.toString();
    }
    public String setstring (String str) {
        String str1 = func(str);
        return str1;
    }
}